"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// function message<T extends IUser>(obj: T, key: string) {
//     return obj[key as keyof T]
// }
// keyof 类型   id | name | address
function message(obj, key) {
    return obj[key];
}
message({ id: 1, name: "xiaowang" }, "name");
